﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en" id="public_head">
    <meta charset="UTF-8">
    <title>血库管理系统 之 患者管理</title>
    <link rel="stylesheet" th:href="@{/css/public.css}" href="../css/public.css"/>
    <link rel="stylesheet" th:href="@{/css/style.css}" ref="../css/style.css"/>
</head>
<body>
<!--头部-->
<header class="publicHeader" id="public_header">
    <h1>血库管理系统 之 患者管理</h1>
    <div class="publicHeaderR">
        <p><span style="color: #fff21b"> [[${byIdPatientMap.p_name}]]</span> , 欢迎你！</p>
        <a th:href="@{/logout}" href="../main/login.html">退出</a>
    </div>
</header>
<!--时间-->
<section class="publicTime" th:replace="main/public :: #public_time">
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left" id="public_left">
        <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
        <nav>
            <ul class="list">
                <li th:id="${activeUri == 'patient' ? 'active': ''}"><a th:href="@{/patients/} + ${byIdPatientMap.p_id} " >个人信息查看</a></li>
                <!--<li th:id="${activeUri == 'patient' ? 'active': ''}"><a th:href="@{/patients/} + ${session.byIdPatient.p_id} " >个人信息修改</a></li>-->
                <li th:id="${activeUri == 'pwd' ? 'active': ''}" ><a th:href="@{/patient/pwd}" href="../main/password.html">密码修改</a></li>
                <li ><a th:href="@{/logout}" href="../main/login.html">退出系统</a></li>
            </ul>
        </nav>
    </div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>个人信息管理页面 >> 个人信息修改页面</span>
        </div>
        <div class="providerAdd">
            <form id="updateForm" th:action="@{/patientUpdate}" th:method="post">
                <input type="hidden" name="_method" value="put">
                <input th:type="hidden" name="p_id" th:value="${byIdPatientMap.p_id}">
                <div class="">
                    <label for="p_name">姓名：</label>
                    <input readonly="readonly"  type="text" name="p_name" id="p_name" th:value="${byIdPatientMap.p_name}" placeholder=""/>
                    <span >*</span>
                </div>
                <div>
                    <label for="p_sex">性别：</label>
                    <input type="text" name="p_sex" id="p_sex" th:value="${byIdPatientMap.p_sex}" placeholder=""/>
                    <span>请输入1 或者 2,男为1,女为2</span>
                </div>
                <div>
                    <label for="p_age">年龄：</label>
                    <input type="text" name="p_age" id="p_age" th:value="${byIdPatientMap.p_age}" placeholder=""/>
                    <span>*</span>
                </div>
                <div>
                    <label for="p_blood">血型：</label>
                    <input readonly="readonly"  type="text" name="p_blood" id="p_blood" th:value="${byIdPatientMap.p_blood}" placeholder=""/>
                    <span>*</span>
                </div>
                <div>
                    <label for="p_address">地址：</label>
                    <input type="text" name="p_address" id="p_address" th:value="${byIdPatientMap.p_address}" placeholder=""/>
                    <span>*</span>
                </div>
                <div>
                    <label for="p_tel">联系电话：</label>
                    <input type="text" name="p_tel" id="p_tel" th:value="${byIdPatientMap.p_tel}" placeholder=""/>
                    <span>*</span>
                </div>
                <input th:type="hidden" name="p_password" th:value="${byIdPatientMap.p_password}">
                <input th:type="hidden" name="p_doctor" th:value="${byIdPatientMap.p_doctor}">

                <div class="providerAddBtn">
                    <input type="button" value="保存" onclick="$('#updateForm').submit()"/>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>

    </div>
</section>

<footer class="footer" th:replace="main/public :: #public_footer">
</footer>

<script th:src="@{/webjars/jquery/3.3.1/jquery.js}" src="../js/jquery.js"></script>

</body>
</html>